package com.itheima.work;

import java.io.FileInputStream;
import java.io.FileOutputStream;

/**
 * @auther Macrydy
 * @date 2020/7/3 21:39
 */
public class Test01 {
    public static void main(String[] args) {
        try(FileOutputStream fos = new FileOutputStream("D:\\a.txt");
            FileInputStream fis = new FileInputStream("D:\\a.txt")){
            byte[] bytes = new byte[1024];
            fos.write("aaa".getBytes());
            fis.read(bytes);
        }catch (Exception e){
            e.printStackTrace();
        }
    }
}
